﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SPromotCardMsg extends IMessageBase
    {
        public var username:String;
        public var playerId:int;
        public var pwd:String;
        public var extendJs:String;
        public var result:int;
        public const _type:int = 123;
        public static var _regist:SPromotCardMsg = new SPromotCardMsg(true);

        public function SPromotCardMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPromotCardMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.username);
            param1.writeInt(this.playerId);
            param1.writeString(this.pwd);
            param1.writeString(this.extendJs);
            param1.writeInt(this.result);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.username = param1.readString();
            this.playerId = param1.readInt();
            this.pwd = param1.readString();
            this.extendJs = param1.readString();
            this.result = param1.readInt();
            return;
        }// end function

    }
}
